package bat.ke.qq.com.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * 循环依赖
 */
@Component
public class B {
    @Autowired
    private A a;  //populateBean   beanFactory.getBean("a")  prototype  @Lookup

//    public B(/*@Lazy*/ A a) {
//        this.a = a;
//    }
}
